import { TableConfig } from '@/components/data-table/types'

export const tableConfig: TableConfig = {
  showCheckbox: false,
  showPagination: true,
  paginationConfig: {
    pageSizes: [3],
    layout: 'total, prev, pager, next'
  },
  tableColumns: [
    {
      label: '运营商',
      prop: 'isp',
      width: 90,
      slot: 'isp'
    },
    {
      label: '带宽',
      prop: 'bandwidth',
      width: 50
    },
    {
      label: 'IP地址',
      prop: 'ip',
      width: 115
    },
    {
      label: '子网掩码',
      prop: 'mask',
      width: 115
    },
    {
      label: '网关',
      prop: 'gateway',
      width: 115
    },
    {
      label: '端口',
      prop: 'port',
      width: 60
    },
    {
      label: '协议',
      prop: 'protocol',
      width: 60
    },
    {
      label: '备注',
      prop: 'remarks',
      minWidth: 100
    },
    {
      label: '操作',
      width: 90,
      slot: 'operation'
    }
  ]
}
